Skip to content

修正对于String实现的描述并添加from_utf8示例#368

Merged
wayslog merged 2 commits intorustcc:masterfrom
Librazy:str
May 10, 2016
Merged

修正对于String实现的描述并添加from_utf8示例#368
wayslog merged 2 commits intorustcc:masterfrom
Librazy:str

Conversation

@Librazy
Copy link
Copy Markdown
Contributor

@Librazy Librazy commented May 9, 2016

No description provided.

Comment thread type/string.md Outdated
let miao = vec![229,150,181];

// 我们知道这些字节是合法的UTF-8编码字符串,所以直接unwarp()
let meow = String::from_utf8(sparkle_heart).unwrap();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sparkle_heart 应该是前面的 miao

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经修正,多谢指出

@wayslog wayslog merged commit e7e10b6 into rustcc:master May 10, 2016
@wayslog wayslog added this to the v1.2.0-release milestone May 10, 2016
@Librazy Librazy deleted the str branch May 14, 2016 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants